<?php
declare (strict_types=1);

use think\facade\Route;

$group_name = 'ScanBagStrategy';
//前缀
$controller = '\app\scan_bag\controller\ScanBagStrategy';
/**
 * 微信扫码取袋(不需要登录)
 */
Route::group($group_name, function () use ($controller) {
    //公众号开始
    Route::post('wechatLogin$', $controller . '@wechatLogin')->name('微信H5用户登录');

})->middleware(middleware\NoAuthMiddleware::class, 'scan_bag');

/**
 * 微信扫码取袋(需要登录)
 */
Route::group($group_name,function () use ($controller) {
    //公众号开始
    Route::post('getMacIdWay$', $controller . '@getMacIdWay')->name('据设备返回对应的取袋模块');


})->middleware(middleware\AuthMiddleware::class, 'scan_bag');



